package com.itheima.dao;

import com.itheima.entity.Account;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Repository;

import javax.sql.DataSource;

@Repository
public class AccountDao {
    @Autowired
    private DataSource dataSource;
    public void save(Account account) {

        System.out.println("dao代码~~~~~~~~~~~保存用户信息成功："+account);
    }

    public Account findById(int id) {
        System.out.println("dao代码~~~~~~~~~~~根据id查询~~~~");
        return new Account();
    }
}
